package com.lxm.common.tools;

import com.lxm.vo.LoginVO;

public class UserHolder {
    private static final ThreadLocal<LoginVO> tl = new ThreadLocal<>();
    public static void saveUser(LoginVO loginUser) {
        tl.set(loginUser);
    }

    public static LoginVO getUser() {
        return tl.get();
    }

    public static void removeUser() {
        tl.remove();
    }


}
